<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ProjectList.aspx.cs" Inherits="ProjectList" Title="Project Monitoring System"
    Culture="Auto:en-US" UICulture="auto" meta:resourcekey="PageResource1" EnableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"
    Visible="false">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div style="margin-left:10px;margin-right:10px;">
        <%-- <fieldset style="text-align: center">--%>
        <div>
            <asp:ObjectDataSource ID="ODSProjectClass" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetProjectClass" TypeName="IPTableAdapters.ProjectClassTableAdapter">
                <SelectParameters>
                    <asp:SessionParameter DefaultValue="0" Name="SuperUser" SessionField="SuperUser"
                        Type="String" />
                    <asp:SessionParameter DefaultValue="" Name="OwnerGroupID" SessionField="OwnerGroupID"
                        Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <cc1:CalendarExtender ID="calStartingNextDueDate" runat="server" TargetControlID="txtStartingNextDueDate"
                Enabled="True" Format="dd/MM/yyyy">
            </cc1:CalendarExtender>
            <asp:ObjectDataSource ID="ODSCountry" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetCountryData" TypeName="IPTableAdapters.CountryTableAdapter">
                <SelectParameters>
                    <asp:SessionParameter DefaultValue="0" Name="SuperUser" SessionField="SuperUser"
                        Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <cc1:CalendarExtender ID="EndingNextDueDate" runat="server" TargetControlID="txtEndingNextDueDate"
                Enabled="True" Format="dd/MM/yyyy">
            </cc1:CalendarExtender>
            <asp:ObjectDataSource ID="ODSStatus" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetCodesByType" TypeName="IPTableAdapters.CodeTableAdapter">
                <SelectParameters>
                    <asp:Parameter DefaultValue="PS" Name="Type" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <asp:TextBox ID="txtUserName" runat="server" Visible="False"></asp:TextBox>
            <asp:Panel ID="Panel2" runat="server" DefaultButton="btnSearch" meta:resourcekey="Panel2Resource1"
                HorizontalAlign="Left">
                <fieldset>
                    <legend>
                        <asp:Label ID="lblSearch" runat="server" Text="Search" meta:resourcekey="lblSearchResource1"></asp:Label></legend>
                    <table width="800">
                        <tr align="left">
                            <td width="100" align="left">
                                <asp:Label ID="lblProjectGroup" runat="server" meta:resourcekey="lblProjectGroup"
                                    Text="Project Group"></asp:Label>
                            </td>
                            <td width="150" align="left">
                                <asp:TextBox ID="txtProjectGroup" runat="server" Width="149px"></asp:TextBox>
                            </td>
                            <td width="100" align="left">
                                <asp:Label ID="lblProjectCode" runat="server" Text="Project Code" meta:resourcekey="lblProjectCodeResource1"></asp:Label>
                            </td>
                            <td width="150" align="left">
                                <asp:TextBox ID="txtProject" runat="server" Width="147px" MaxLength="30" meta:resourcekey="txtProjectResource1"></asp:TextBox>
                            </td>
                            <td width="150" align="left">
                                <asp:Label ID="lblType" runat="server" Text="Type" meta:resourcekey="lblTypeResource1"></asp:Label>
                            </td>
                            <td width="150" align="left">
                                <asp:DropDownList ID="ddlType" runat="server" Width="97px" meta:resourcekey="ddlTypeResource1"
                                    OnPreRender="ddlType_PreRender">
                                    <asp:ListItem meta:resourcekey="ListItemResource73"></asp:ListItem>
                                    <asp:ListItem meta:resourcekey="ListItemResource74" Text="Patent"></asp:ListItem>
                                    <asp:ListItem meta:resourcekey="ListItemResource75" Text="Design"></asp:ListItem>
                                    <asp:ListItem meta:resourcekey="ListItemResource76" Text="Trademark"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr align="left">
                            <td align="left">
                                <asp:Label ID="lblTitleSubject" runat="server" Text="Title/Subject" meta:resourcekey="lblTitleSubjectResource1"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTitleSubject" runat="server" Width="150px" MaxLength="60" meta:resourcekey="txtProjectTitleResource1"></asp:TextBox>
                            </td>
                            <td align="left">
                                <asp:Label ID="lblCountry" runat="server" Text="Country" meta:resourcekey="lblCountryResource1"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlCountry" runat="server" Width="144px" meta:resourcekey="ddlTypeResource1"
                                    DataSourceID="ODSCountry" DataTextField="Country" DataValueField="Country" OnPreRender="ddlType_PreRender">
                                    <asp:ListItem meta:resourceKey="ListItemResource73"></asp:ListItem>
                                    <asp:ListItem meta:resourceKey="ListItemResource74" Text="Patent"></asp:ListItem>
                                    <asp:ListItem meta:resourceKey="ListItemResource75" Text="Design"></asp:ListItem>
                                    <asp:ListItem meta:resourceKey="ListItemResource76" Text="Trademark"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="left">
                                <asp:Label ID="lblStatus" runat="server" Text="Status" meta:resourcekey="lblStatusResource1"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlStatus" runat="server" DataSourceID="ODSStatus" DataTextField="Description"
                                    DataValueField="Code" OnPreRender="ddlStatus_PreRender" meta:resourcekey="ddlStatusResource1">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr align="left">
                            <td align="left">
                                <asp:Label ID="lblApplicant" runat="server" Text="Applicant" meta:resourcekey="lblApplicantResource1"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtApplicant" runat="server" Width="151px" MaxLength="30" meta:resourcekey="txtApplicantResource1"></asp:TextBox>
                            </td>
                            <td align="left">
                                <asp:Label ID="lblInventor" runat="server" Text="Inventor" meta:resourcekey="lblInventorResource1"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtInventor" runat="server" MaxLength="30" Width="146px" meta:resourcekey="txtInventorResource1"></asp:TextBox>
                            </td>
                            <td align="left">
                                <asp:Label ID="lblResponsiblePerson" runat="server" Text="Responsible Person" meta:resourcekey="lblResponsiblePersonResource1"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtResponsiblePerson" runat="server" Width="93px" MaxLength="30"
                                    meta:resourcekey="txtResponsiblePersonResource1"></asp:TextBox>
                            </td>
                        </tr>
                        <tr align="left">
                            <td align="left">
                                <asp:Label ID="lblAgent" runat="server" Text="Agent" meta:resourcekey="lblAgentResource1"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtAgent" runat="server"></asp:TextBox>
                            </td>
                            <td align="left">
                                <asp:Label ID="lblClient" runat="server" Text="Client" meta:resourcekey="lblClientResource1"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtClient" runat="server"></asp:TextBox>
                            </td>
                            <td align="left">
                                <asp:Label ID="lblProjectClass" runat="server" meta:resourcekey="lblProjectClass"
                                    Text="Project Class"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProjectClass" runat="server" Width="97px" meta:resourcekey="ddlTypeResource1"
                                    DataSourceID="ODSProjectClass" DataTextField="ProjectClass" DataValueField="ProjectClass"
                                    OnPreRender="ddlProjectClass_PreRender">
                                    <asp:ListItem meta:resourceKey="ListItemResource73"></asp:ListItem>
                                    <asp:ListItem meta:resourceKey="ListItemResource74" Text="Patent"></asp:ListItem>
                                    <asp:ListItem meta:resourceKey="ListItemResource75" Text="Design"></asp:ListItem>
                                    <asp:ListItem meta:resourceKey="ListItemResource76" Text="Trademark"></asp:ListItem>
                                    <asp:ListItem Text="Others"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr align="left">
                            <td align="left">
                                <asp:Label ID="Label1" runat="server" Text="Next Due Date" meta:resourcekey="lblNextDueDate"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtStartingNextDueDate" runat="server" Width="70px" meta:resourcekey="txtStartingNextDueDateResource1"></asp:TextBox>
                            </td>
                            <td align="left">
                                <asp:Label ID="lblTo" runat="server" Text="To" meta:resourcekey="lblTo"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtEndingNextDueDate" runat="server" Width="92px" meta:resourcekey="txtEndingNextDueDateResource1"></asp:TextBox>
                            </td>
                            <td align="left">
                                <asp:HiddenField ID="hidIsDelete" runat="server" Value="False" />
                                <asp:Label ID="lblDeleteStatus" runat="server" Text="Delete Status" meta:resourcekey="lblDeleteStatusResource1"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlDeleteStatus" runat="server">
                                    <asp:ListItem Text="" Value="0"></asp:ListItem>
                                    <asp:ListItem meta:resourcekey="ListItemNormalResource" Text="Normal" Value="False"></asp:ListItem>
                                    <asp:ListItem meta:resourcekey="ListItemDeletedResource" Text="Deleted" Value="True"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:TextBox ID="txtHideStartingDate" runat="server" Visible="False" Width="10px"></asp:TextBox>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtHideEndingDate" runat="server" Visible="False" Width="10px"></asp:TextBox>
                                <asp:Label ID="lblStage" runat="server" Text="Stage" meta:resourcekey="lblStageResource1"
                                    Visible="False"></asp:Label>
                                <asp:DropDownList ID="ddlStage" runat="server" Width="96px" meta:resourcekey="ddlTypeResource1"
                                    OnPreRender="ddlStage_PreRender" Visible="False">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6" align="center">
                                <asp:Button ID="btnNewProject" runat="server" Text="New Project" CssClass="submit"
                                    OnClick="btnNewProject_Click" meta:resourcekey="btnNewProjectResource1" Height="23px"
                                    Width="87px" />
                                <asp:Button ID="btnSearch" runat="server" CssClass="submit" meta:resourcekey="btnSearchResource1"
                                    OnClick="btnSearch_Click" Text="Search" Width="86px" Height="23px" />
                                <asp:Button ID="btnPrintExport" Text="Print/Export" runat="server" Width="86px" CssClass="submit"
                                    meta:resourcekey="btnPrintExport" OnClientClick="javascript:OpenPrint();return false;"
                                    UseSubmitBehavior="False" Height="23px" />
                                <asp:Button ID="btnReset" meta:resourcekey="sReset" Text="Reset" runat="server" Width="86px"
                                    CssClass="submit" OnClientClick="javascript:Reset();return false;" UseSubmitBehavior="False"
                                    Height="23px" />
                                <!--<asp:Button runat="server" Text="Export" CssClass="submit" Width="105px" ID="btnExport" meta:resourceKey="btnExportResource1" OnClick="btnExport_Click"></asp:Button>-->
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </asp:Panel>
        </div>
        <br />
        <br />
        <%--<asp:Panel ID="Panel1" runat="server" Height="350px" Width="950px"
                BorderWidth="1px" meta:resourcekey="Panel1Resource1">--%>
        <asp:ObjectDataSource ID="ODSSearchProject" runat="server" OldValuesParameterFormatString="original_{0}"
            SelectMethod="GetSearchResult" TypeName="IPMS.BLL.SearchProject">
            <SelectParameters>
                <asp:ControlParameter ControlID="txtProject" Name="Project" PropertyName="Text" Type="String" />
                <asp:ControlParameter ControlID="ddlStatus" Name="Status" PropertyName="SelectedValue"
                    Type="String" DefaultValue="" />
                <asp:ControlParameter ControlID="ddlType" Name="Type" PropertyName="SelectedValue"
                    Type="String" />
                <asp:ControlParameter ControlID="txtAgent" Name="Agent" PropertyName="Text" Type="String"
                    DefaultValue="" />
                <asp:ControlParameter ControlID="ddlCountry" Name="Country" PropertyName="SelectedValue"
                    Type="String" DefaultValue="" />
                <asp:ControlParameter ControlID="txtClient" Name="Client" PropertyName="Text" Type="String" />
                <asp:ControlParameter ControlID="txtTitleSubject" Name="ProjectTitle" PropertyName="Text"
                    Type="String" DefaultValue="" />
                <asp:ControlParameter ControlID="txtApplicant" Name="Applicant" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="ddlStage" Name="Stage" PropertyName="SelectedValue"
                    Type="String" DefaultValue="" />
                <asp:ControlParameter ControlID="txtResponsiblePerson" Name="ResponsiblePerson" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="txtHideStartingDate" DefaultValue="1/1/1753" Name="StartingNextDueDate"
                    PropertyName="Text" Type="DateTime" />
                <asp:ControlParameter ControlID="txtHideEndingDate" Name="EndingNextDueDate" PropertyName="Text"
                    Type="DateTime" DefaultValue="01/01/9999" />
                <asp:ControlParameter ControlID="txtInventor" Name="Inventor" PropertyName="Text"
                    Type="String" DefaultValue="" />
                <asp:ControlParameter ControlID="ddlProjectClass" Name="ProjectClass" PropertyName="SelectedValue"
                    Type="String" DefaultValue="" />
                <asp:SessionParameter DefaultValue="False" Name="SuperUser" SessionField="SuperUser"
                    Type="Int32" />
                <asp:SessionParameter DefaultValue="" Name="OwnerGroupID" SessionField="OwnerGroupID"
                    Type="String" />
                <asp:ControlParameter ControlID="txtProjectGroup" Name="ProjectGroup" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="txtUserName" DefaultValue="" Name="UserName" PropertyName="Text"
                    Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ODSSearchProject2" runat="server" OldValuesParameterFormatString="original_{0}"
            SelectMethod="GetSearchAndIsDeleteResult" TypeName="IPMS.BLL.SearchProject">
            <SelectParameters>
                <asp:ControlParameter ControlID="txtProject" Name="Project" PropertyName="Text" Type="String" />
                <asp:ControlParameter ControlID="ddlStatus" Name="Status" PropertyName="SelectedValue"
                    Type="String" DefaultValue="" />
                <asp:ControlParameter ControlID="ddlType" Name="Type" PropertyName="SelectedValue"
                    Type="String" />
                <asp:ControlParameter ControlID="txtAgent" Name="Agent" PropertyName="Text" Type="String"
                    DefaultValue="" />
                <asp:ControlParameter ControlID="ddlCountry" Name="Country" PropertyName="SelectedValue"
                    Type="String" DefaultValue="" />
                <asp:ControlParameter ControlID="txtClient" Name="Client" PropertyName="Text" Type="String" />
                <asp:ControlParameter ControlID="txtTitleSubject" Name="ProjectTitle" PropertyName="Text"
                    Type="String" DefaultValue="" />
                <asp:ControlParameter ControlID="txtApplicant" Name="Applicant" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="ddlStage" Name="Stage" PropertyName="SelectedValue"
                    Type="String" DefaultValue="" />
                <asp:ControlParameter ControlID="txtResponsiblePerson" Name="ResponsiblePerson" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="txtHideStartingDate" DefaultValue="1/1/1753" Name="StartingNextDueDate"
                    PropertyName="Text" Type="DateTime" />
                <asp:ControlParameter ControlID="txtHideEndingDate" Name="EndingNextDueDate" PropertyName="Text"
                    Type="DateTime" DefaultValue="01/01/9999" />
                <asp:ControlParameter ControlID="txtInventor" Name="Inventor" PropertyName="Text"
                    Type="String" DefaultValue="" />
                <asp:ControlParameter ControlID="ddlProjectClass" Name="ProjectClass" PropertyName="SelectedValue"
                    Type="String" DefaultValue="" />
                <asp:SessionParameter DefaultValue="False" Name="SuperUser" SessionField="SuperUser"
                    Type="Int32" />
                <asp:SessionParameter DefaultValue="" Name="OwnerGroupID" SessionField="OwnerGroupID"
                    Type="String" />
                <asp:ControlParameter ControlID="txtProjectGroup" Name="ProjectGroup" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="txtUserName" DefaultValue="" Name="UserName" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="hidIsDelete" DefaultValue="" Name="IsDelete" PropertyName="Value"
                    Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <fieldset>
            <legend>
                <asp:Label ID="lblActive" runat="server" Text="Active Project" meta:resourcekey="lblActiveResource1"></asp:Label>
            </legend>
            <asp:GridView CssClass="Grid" ID="gvResults" runat="server" BackColor="#DEBA84" BorderColor="#660000"
                BorderStyle="Solid" BorderWidth="1px" CellPadding="0" CellSpacing="0" Width="100%"
                Height="1%" AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False"
                DataSourceID="ODSSearchProject2" meta:resourcekey="gvResultsResource1" OnRowDataBound="gvResults_RowDataBound"
                DataKeyNames="ProjectGroupId,ProjectCode,Type,IsDelete" OnSelectedIndexChanged="gvResults_SelectedIndexChanged"
                OnRowCommand="gvResults_RowCommand">
                <Columns>
                    <asp:BoundField DataField="ProjectCode" HeaderText="Project Code" meta:resourcekey="BoundFieldResource1" Visible="False">
                        <ItemStyle Wrap="False" HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ProjectGroupId" HeaderText="Project Group" meta:resourcekey="sProjectGroup" ItemStyle-Width="15%" />
                    <asp:ButtonField CommandName="Select" DataTextField="ProjectCode" HeaderText="Project Code" meta:resourcekey="ButtonFieldResource1">
                        <ItemStyle HorizontalAlign="Left" Width="15%" />
                    </asp:ButtonField>
                    <asp:BoundField DataField="Type" HeaderText="Type" meta:resourcekey="BoundFieldResource4">
                        <ItemStyle HorizontalAlign="Left" Width="5%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Title" HeaderText="Title/Subject" meta:resourcekey="BoundFieldResource6">
                        <ItemStyle HorizontalAlign="Left" Wrap="False" Width="15%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Country" Visible="false" HeaderText="Country" ReadOnly="True"
                        meta:resourcekey="BoundFieldResource3">
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Status" HeaderText="Status" meta:resourcekey="BoundFieldResource9">
                        <ItemStyle HorizontalAlign="Left" Width="10%" Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Applicant" HeaderText="Applicant" meta:resourcekey="BoundFieldResource7">
                        <ItemStyle HorizontalAlign="Left" Width="15%" Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Inventor" HeaderText="Inventor" meta:resourcekey="BoundFieldResource10">
                        <ItemStyle HorizontalAlign="Left" Width="15%" Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ResponsiblePerson" Visible="false" HeaderText="Responsible Person"
                        ReadOnly="True" meta:resourcekey="BoundFieldResource8">
                        <ItemStyle HorizontalAlign="Left" Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Agent" HeaderText="Agent" Visible="false" ReadOnly="True"
                        meta:resourcekey="BoundFieldResource5">
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Client" HeaderText="Client" Visible="false" ReadOnly="True"
                        meta:resourcekey="sProjectGroup">
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ProjectClass" Visible="false" HeaderText="Project Class"
                        meta:resourcekey="BoundFieldResource13">
                        <ItemStyle HorizontalAlign="Left" Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField DataField="NextDueDate" Visible="false" HeaderText="Next Due Date"
                        DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource12">
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Stage" Visible="false" HeaderText="Stage" meta:resourcekey="BoundFieldResource11">
                        <ItemStyle HorizontalAlign="Left" Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Remark" Visible="false" HeaderText="Remark" meta:resourcekey="BoundFieldResource14">
                        <ItemStyle HorizontalAlign="Left" Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField DataField="UpdateIP" HeaderText="IP Address" ItemStyle-HorizontalAlign="left"
                        meta:resourcekey="BoundFieldResourceUpdateIP" />
                    <asp:BoundField DataField="UpdateBy" HeaderText="Updated By" ItemStyle-HorizontalAlign="left"
                        meta:resourcekey="BoundFieldResourceUpdateBy" />
                    <asp:BoundField DataField="UpdateDate" HeaderText="Last Update Date" ItemStyle-HorizontalAlign="left"
                        meta:resourcekey="BoundFieldResourceUpdateDate" />
                    <asp:TemplateField ItemStyle-Width="60" ItemStyle-HorizontalAlign="center" HeaderText="Edit">
                        <ItemTemplate>
                            <asp:ImageButton ID="lbtnSelect" CommandName="Select" runat="server" ImageUrl="Images/icon-edit.gif" meta:resourcekey="lbtnSelectResource"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                <RowStyle CssClass="GridRowStyle" />
                <AlternatingRowStyle CssClass="GridAltRowStyle" />
                <SelectedRowStyle CssClass="GridSelectedRowStyle" />
                <PagerStyle CssClass="GridPagerStyle" ForeColor="White" />
                <FooterStyle CssClass="GridFooterStyle" />
            </asp:GridView>
        </fieldset>
        <div>
            <asp:HiddenField ID="hidProjectIsDelete" runat="server" Value="True" />
            <asp:ObjectDataSource ID="ODSProjectDelete" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetSearchAndIsDeleteResult" TypeName="IPMS.BLL.SearchProject">
                <SelectParameters>
                    <asp:ControlParameter ControlID="txtProject" Name="Project" PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="ddlStatus" Name="Status" PropertyName="SelectedValue"
                        Type="String" DefaultValue="" />
                    <asp:ControlParameter ControlID="ddlType" Name="Type" PropertyName="SelectedValue"
                        Type="String" />
                    <asp:ControlParameter ControlID="txtAgent" Name="Agent" PropertyName="Text" Type="String"
                        DefaultValue="" />
                    <asp:ControlParameter ControlID="ddlCountry" Name="Country" PropertyName="SelectedValue"
                        Type="String" DefaultValue="" />
                    <asp:ControlParameter ControlID="txtClient" Name="Client" PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="txtTitleSubject" Name="ProjectTitle" PropertyName="Text"
                        Type="String" DefaultValue="" />
                    <asp:ControlParameter ControlID="txtApplicant" Name="Applicant" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="ddlStage" Name="Stage" PropertyName="SelectedValue"
                        Type="String" DefaultValue="" />
                    <asp:ControlParameter ControlID="txtResponsiblePerson" Name="ResponsiblePerson" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="txtHideStartingDate" DefaultValue="1/1/1753" Name="StartingNextDueDate"
                        PropertyName="Text" Type="DateTime" />
                    <asp:ControlParameter ControlID="txtHideEndingDate" Name="EndingNextDueDate" PropertyName="Text"
                        Type="DateTime" DefaultValue="01/01/9999" />
                    <asp:ControlParameter ControlID="txtInventor" Name="Inventor" PropertyName="Text"
                        Type="String" DefaultValue="" />
                    <asp:ControlParameter ControlID="ddlProjectClass" Name="ProjectClass" PropertyName="SelectedValue"
                        Type="String" DefaultValue="" />
                    <asp:SessionParameter DefaultValue="False" Name="SuperUser" SessionField="SuperUser"
                        Type="Int32" />
                    <asp:SessionParameter DefaultValue="" Name="OwnerGroupID" SessionField="OwnerGroupID"
                        Type="String" />
                    <asp:ControlParameter ControlID="txtProjectGroup" Name="ProjectGroup" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="txtUserName" DefaultValue="" Name="UserName" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="hidProjectIsDelete" DefaultValue="" Name="IsDelete"
                        PropertyName="Value" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <fieldset>
                <legend>
                    <asp:Label ID="lblDeleted" runat="server" Text="Deleted Project" meta:resourcekey="lblDeletedResource1"></asp:Label>
                </legend>
                <asp:GridView CssClass="Grid" ID="gvProjectDeleteList" runat="server" BackColor="#DEBA84"
                    BorderColor="#660000" BorderStyle="Solid" BorderWidth="1px" CellPadding="0" CellSpacing="0"
                    Width="100%" Height="1%" AllowPaging="True" PageSize="20" AllowSorting="True"
                    AutoGenerateColumns="False" 
                    DataSourceID="ODSProjectDelete" meta:resourcekey="gvResultsResource1"
                    OnRowDataBound="gvProjectDeleteList_RowDataBound" 
                    DataKeyNames="ProjectGroupId,ProjectCode,Type,IsDelete"
                    OnSelectedIndexChanged="gvProjectDeleteList_SelectedIndexChanged" 
                    OnRowCommand="gvProjectDeleteList_RowCommand">
                    <Columns>
                        <asp:BoundField DataField="ProjectCode" HeaderText="Project Code" meta:resourcekey="BoundFieldResource1"
                            Visible="False">
                            <ItemStyle Wrap="False" HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ProjectGroupId" HeaderText="Project Group" meta:resourcekey="sProjectGroup"
                            ItemStyle-Width="15%" />
                        <asp:ButtonField CommandName="Select" DataTextField="ProjectCode" HeaderText="Project Code"
                            Text="Button" meta:resourcekey="ButtonFieldResource1">
                            <ItemStyle HorizontalAlign="Left" Width="15%" />
                        </asp:ButtonField>
                        <asp:BoundField DataField="Type" HeaderText="Type" meta:resourcekey="BoundFieldResource4">
                            <ItemStyle HorizontalAlign="Left" Width="5%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Title" HeaderText="Title/Subject" meta:resourcekey="BoundFieldResource6">
                            <ItemStyle HorizontalAlign="Left" Wrap="False" Width="15%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Country" Visible="false" HeaderText="Country" ReadOnly="True"
                            meta:resourcekey="BoundFieldResource3">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Status" HeaderText="Status" meta:resourcekey="BoundFieldResource9">
                            <ItemStyle HorizontalAlign="Left" Width="10%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Applicant" HeaderText="Applicant" meta:resourcekey="BoundFieldResource7">
                            <ItemStyle HorizontalAlign="Left" Width="15%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Inventor" HeaderText="Inventor" meta:resourcekey="BoundFieldResource10">
                            <ItemStyle HorizontalAlign="Left" Width="15%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ResponsiblePerson" Visible="false" HeaderText="Responsible Person"
                            ReadOnly="True" meta:resourcekey="BoundFieldResource8">
                            <ItemStyle HorizontalAlign="Left" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Agent" HeaderText="Agent" Visible="false" ReadOnly="True"
                            meta:resourcekey="BoundFieldResource5">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Client" HeaderText="Client" Visible="false" ReadOnly="True"
                            meta:resourcekey="sProjectGroup">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ProjectClass" Visible="false" HeaderText="Project Class"
                            meta:resourcekey="BoundFieldResource13">
                            <ItemStyle HorizontalAlign="Left" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="NextDueDate" Visible="false" HeaderText="Next Due Date"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource12">
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Stage" Visible="false" HeaderText="Stage" meta:resourcekey="BoundFieldResource11">
                            <ItemStyle HorizontalAlign="Left" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Remark" Visible="false" HeaderText="Remark" meta:resourcekey="BoundFieldResource14">
                            <ItemStyle HorizontalAlign="Left" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DeleteIP" HeaderText="IP Address" ItemStyle-HorizontalAlign="left"
                            meta:resourcekey="BoundFieldResourceDeleteIP" />
                        <asp:BoundField DataField="DeleteBy" HeaderText="Deleted By" ItemStyle-HorizontalAlign="left"
                            meta:resourcekey="BoundFieldResourceDeleteBy" />
                        <asp:BoundField DataField="DeleteDate" HeaderText="Delete Date" ItemStyle-HorizontalAlign="left"
                            meta:resourcekey="BoundFieldResourceDeleteDate" />
                        <asp:TemplateField ItemStyle-Width="60" ItemStyle-HorizontalAlign="center" HeaderText="Restore">
                            <ItemTemplate>
                                <asp:Label ID="lblIsDelete" runat="server" Text='<%# Eval("IsDelete") %>' Visible="false"></asp:Label>
                                <asp:ImageButton ID="lbtnRestore" CommandName="Restore" runat="server" ImageUrl="Images/icon-save.gif"/>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="60" ItemStyle-HorizontalAlign="center" HeaderText="Trash">
                            <ItemTemplate>
                                <asp:ImageButton ID="lbtnFroceDelete" CommandName="ForceDelete" runat="server" ImageUrl="Images/icon-delete.jpg"/>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                    <RowStyle CssClass="GridRowStyle" />
                    <AlternatingRowStyle CssClass="GridAltRowStyle" />
                    <SelectedRowStyle CssClass="GridSelectedRowStyle" />
                    <PagerStyle CssClass="GridPagerStyle" ForeColor="White" />
                    <FooterStyle CssClass="GridFooterStyle" />
                </asp:GridView>
            </fieldset>
        </div>
        <%--</asp:Panel>--%>
        <%--</fieldset>--%>
    </div>
</asp:Content>
